package io.gitee.hfl.rocketmq.annotation;

import io.gitee.hfl.rocketmq.config.RocketAutoConfiguration;
import io.gitee.hfl.rocketmq.props.RocketProperties;
import io.gitee.hfl.rocketmq.resolver.PropertyResolver;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 启用 阿里云rocketMQ ons消息队列服务
 *
 * @author hefulin
 */
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@EnableConfigurationProperties(RocketProperties.class)
@Import({RocketAutoConfiguration.class, PropertyResolver.class})
public @interface EnableRocket {
}